
<table class="table table-bordered data-table fix-border">
    <thead>
        <tr role="row">
            <?php
            foreach ($data['table_titles'] as $key => $value) {
                ?>
                <th><?php echo $value; ?></th>
                <?php
            }	
            ?>
            <th></th>
        </tr>
    </thead>
    <tbody>
       		<?php foreach ($data['lists'] as $list) : ?>
            <tr class="">
            	<?php foreach ($data['table_titles'] as $key => $value) : ?>
            	<td><?php echo $list[$key]; ?></td>
            	<?php endforeach; ?>
                <td><a href="/admins/song/edit/<?php echo $list['id']; ?>">
                    <button class="btn btn-primary btn-small btn-edit"><i class="icon-pencil icon-white"></i>Sửa</button>
                    </a>
                    <button onclick="del_item(this);" class="btn btn-danger del-news btn-small" model="<?php echo $controller_name; ?>" item-id="<?php echo $list['id']; ?>"><i class="icon-remove icon-white"></i>Xóa</button>
                </td>
            </tr>
            <?php endforeach; ?>

    </tbody>
</table>